Skip to content

Conversation

@afoures
Copy link

@afoures afoures commented Feb 2, 2026

This relates to...

#4799

Rationale

Added tests to reproduce the issue to help fix it

Changes

Features

Bug Fixes

Breaking Changes and Deprecations

Status

@afoures afoures changed the title fix: add test for issue #4799 fix: add test for issue 4799 Feb 2, 2026
mcollina added a commit that referenced this pull request Feb 3, 2026
…oned response

When a Response was cloned and the AbortController was aborted before consuming the body,
consuming the body threw a TypeError (Body is unusable) instead of the expected AbortError.

Changes:
- Check for aborted state before checking if body is unusable in consumeBody()
- Set response.aborted flag in abortFetch() to properly track abort state

Fixes: #4799
Refs: #4800
mcollina added a commit that referenced this pull request Feb 3, 2026
…oned response

When a Response was cloned and the AbortController was aborted before consuming the body,
consuming the body threw a TypeError (Body is unusable) instead of the expected AbortError.

Changes:
- Check for aborted state before checking if body is unusable in consumeBody()
- Set response.aborted flag in abortFetch() to properly track abort state

Fixes: #4799
Refs: #4800

Co-authored-by: Antoine Fourès <contact@afoures.com>
mcollina added a commit that referenced this pull request Feb 3, 2026
…oned response

When a Response was cloned and the AbortController was aborted before consuming the body, consuming the body threw a TypeError (Body is unusable) instead of the expected AbortError.

Changes:

- Check for aborted state before checking if body is unusable in consumeBody()

- Set response.aborted flag in abortFetch() to properly track abort state

Fixes: #4799

Refs: #4800

Co-authored-by: Antoine Fourès <contact@afoures.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant